package com.lanbu.chat.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.lanbu.common.annotation.Excel;
import com.lanbu.common.core.domain.BaseEntity;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

/**
 * 群对象 im_group
 *
 * @author lanbu
 * @date 2024-09-15
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class ImGroup extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 群名字 */
    @Excel(name = "群名字")
    private String name;

    /** 群主id */
    @Excel(name = "群主id")
    private Long ownerId;

    /** 群头像 */
    @Excel(name = "群头像")
    private String headImage;

    /** 群头像缩略图 */
    @Excel(name = "群头像缩略图")
    private String headImageThumb;

    /** 群公告 */
    @Excel(name = "群公告")
    private String notice;
    /** 群公告 */
    @Excel(name = "群聊名称 ")
    private String remark;
    /** 是否已删除 */
    @Excel(name = "是否已删除")
    private Integer deleted;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createdTime;

    /** 群成员 */
    private List<ImGroupMember> groupMembers;
}
